****Tables in papers
****use means dataset
**** 20140210

***TABLE 1
factor x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic, mineigen(1)
factor x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Africa==1, mineigen(1)
factor x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if exussr==1, mineigen(1)
factor x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Asia==1 , mineigen(1)
factor x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if LAm==1 , mineigen(1)
factor x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt  x_00sPRGbureaucratic if WEuro ==1 , mineigen(1)

paran x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic, iterations(5000)
paran x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Africa==1, iterations(5000)
paran x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if exussr==1, iterations(5000)
paran x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Asia==1 , iterations(5000)
paran x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if LAm==1 , iterations(5000)
paran x_00svar839 x_00sHF_property x_00sCIM x_00sHF_corrupt  x_00sPRGbureaucratic if WEuro ==1 , iterations(5000)


factor x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic, mineigen(1)
factor x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Africa==1, mineigen(1)
factor x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if exussr==1, mineigen(1)
factor x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Asia==1 , mineigen(1)
factor x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if LAm==1 , mineigen(1)
factor x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt  x_00sPRGbureaucratic if WEuro ==1 , mineigen(1)

factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic, mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Africa==1, mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if exussr==1, mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Asia==1 , mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if LAm==1 , mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt  x_00sPRGbureaucratic if WEuro ==1 , mineigen(1)

***pure table
factor x_00sA303 x_00sHF_property x_00sHF_corrupt x_00sBTI_Q14 , mineigen(1)
factor x_00sA303 x_00sHF_property x_00sHF_corrupt x_00sBTI_Q14  if Africa==1, mineigen(1)
factor x_00sA303 x_00sHF_property  x_00sHF_corrupt x_00sBTI_Q14  if exussr==1, mineigen(1)
factor x_00sA303 x_00sHF_property  x_00sHF_corrupt x_00sBTI_Q14  if Asia==1 , mineigen(1)
factor x_00sA303 x_00sHF_property  x_00sHF_corrupt x_00sBTI_Q14  if LAm==1 , mineigen(1)
factor x_00sA303 x_00sHF_property  x_00sHF_corrupt   if WEuro ==1 , mineigen(1)


factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic, mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if GDP_CAT==0, mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if GDP_CAT==1, mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if GDP_CAT==2 , mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if GDP_CAT==3 , mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt  x_00sPRGbureaucratic if WEuro ==1 , mineigen(1)


factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic, mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Africa==1, mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if exussr==1, mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if Asia==1 , mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q14 x_00sPRGbureaucratic if LAm==1 , mineigen(1)
factor x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt  x_00sPRGbureaucratic if WEuro ==1 , mineigen(1)



***table 1b, correlations
pwcorr x_00svar839 x_00sA303 x_00sHF_property x_00sCIM x_00sHF_corrupt x_00sBTI_Q1 x_00sPRGbureaucratic, sig


***90s tables
factor x_90svar839 x_90sHF_property x_90sCIM x_90sHF_corrupt x_90sPRGbureaucratic , mineigen(1)
factor x_90svar839 x_90sHF_property x_90sCIM x_90sHF_corrupt x_90sPRGbureaucratic if Africa==1, mineigen(1)
factor x_90svar839 x_90sHF_property x_90sCIM x_90sHF_corrupt x_90sPRGbureaucratic if exussr ==1, mineigen(1)
factor x_90svar839 x_90sHF_property x_90sCIM x_90sHF_corrupt x_90sPRGbureaucratic if Asia ==1, mineigen(1)
factor x_90svar839 x_90sHF_property x_90sCIM x_90sHF_corrupt x_90sPRGbureaucratic if LAm ==1, mineigen(1)


****coercive
pwcorr x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, sig
factor x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, mineigen(1)
factor x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if Africa==1
factor x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if exussr==1, mineigen(1)
factor x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if Asia==1, mineigen(1)
factor x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if LAm==1, mineigen(1)
factor x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if WEuro==1, mineigen(1)

paran x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst
paran x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if Africa==1
paran x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if exussr==1
paran x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if Asia==1
paran x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if LAm==1
paran x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if WEuro==1


pwcorr x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, sig
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if Africa==1
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if exussr==1, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if Asia==1, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if LAm==1, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if WEuro==1, mineigen(1)

pwcorr x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, sig
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if Africa==1
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if exussr==1
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if Asia==1
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if LAm==1
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if WEuro==1


pwcorr x_00svar803bLOG x_00svar831clog x_00sA201 , sig
paran x_00svar803bLOG x_00svar831clog x_00sA201 
paran x_00svar803bLOG x_00svar831clog x_00sA201 if Africa==1
paran x_00svar803bLOG x_00svar831clog x_00sA201 if exussr==1
paran x_00svar803bLOG x_00svar831clog x_00sA201  if Asia==1
paran x_00svar803bLOG x_00svar831clog x_00sA201  if LAm==1
paran x_00svar803bLOG x_00svar831clog x_00sA201  if WEuro==1



pwcorr x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, sig
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if GDP_CAT==0
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if GDP_CAT==1, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if GDP_CAT==2, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if GDP_CAT==3, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst if WEuro==1, mineigen(1)


****coercive after last revisions
pwcorr x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst, sig
factor x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst, mineigen(1)
factor x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if Africa==1
factor x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if exussr==1, mineigen(1)
factor x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if Asia==1, mineigen(1)
factor x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if LAm==1, mineigen(1)
factor x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if WEuro==1, mineigen(1)


pwcorr x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst, sig
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if Africa==1
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if exussr==1, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if Asia==1, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if LAm==1, mineigen(1)
factor x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if WEuro==1, mineigen(1)

paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if Africa==1
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if exussr==1
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if Asia==1
paran x_00svar803bLOG x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst if LAm==1



***TABLE 3
reg  x_00sPRGbureaucratic  x_00svar803bLOG  x_00svar831clog x_00sA201 , robust b
reg x_00sPRGbureaucratic   x_00svar803bLOG, robust b
reg x_00sPRGbureaucratic   x_00svar831clog, robust b
reg x_00sPRGbureaucratic   x_00sA201, robust b
reg  x_00sPRGbureaucratic  x_00sBTI_Q11, robust b
reg  x_00sPRGbureaucratic  x_00sexconst, robust b
reg  x_00sPRGbureaucratic  x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, robust b
reg  x_00sPRGbureaucratic  x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sBTI_Q11 x_00sexconst x_var820 exussr LAm Africa, robust b

jacknife:  reg x_00sPRGbureaucratic  x_00svar803bLOG  x_00svar831clog x_00sA201 , b
jacknife:  reg x_00sPRGbureaucratic   x_00svar803bLOG, robust b
jacknife:  reg x_00sPRGbureaucratic   x_00svar831clog, robust b
jacknife:  reg x_00sPRGbureaucratic   x_00sA201, robust b
jacknife:  reg  x_00sPRGbureaucratic  x_00sPHYSINT, robust b
jacknife:  reg  x_00sPRGbureaucratic  x_00sexconst, robust b
jacknife:  reg  x_00sPRGbureaucratic  x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, robust b
jacknife:  reg x_00sPRGbureaucratic  x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst x_var820 exussr LAm Africa  , robust b


***Alternative table 3 with other dependent variables
reg  x_00sBTI_Q14  x_00svar803bLOG  x_00svar831clog x_00sA201 , robust b
reg  x_00sBTI_Q14  x_00svar803bLOG, robust b
reg  x_00sBTI_Q14   x_00svar831clog, robust b
reg  x_00sBTI_Q14   x_00sA201, robust b
reg  x_00sBTI_Q14  x_00sPHYSINT, robust b
reg  x_00sBTI_Q14  x_00sexconst, robust b
reg  x_00sBTI_Q14  x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, robust b
reg  x_00sBTI_Q14  x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst x_var820 exussr LAm Africa  , robust b

reg  x_00sHF_property   x_00svar803bLOG  x_00svar831clog x_00sA201 , robust b
reg  x_00sHF_property   x_00svar803bLOG, robust b
reg  x_00sHF_property   x_00svar831clog, robust b
reg  x_00sHF_property   x_00sA201, robust b
reg  x_00sHF_property   x_00sPHYSINT, robust b
reg  x_00sHF_property   x_00sexconst, robust b
reg  x_00sHF_property   x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, robust b
reg  x_00sHF_property   x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst x_var820 exussr LAm Africa  , robust b

reg  x_00sA303  x_00svar803bLOG  x_00svar831clog x_00sA201 , robust b
reg  x_00sA303  x_00svar803bLOG, robust b
reg  x_00sA303   x_00svar831clog, robust b
reg  x_00sA303   x_00sA201, robust b
reg  x_00sA303  x_00sPHYSINT, robust b
reg  x_00sA303  x_00sexconst, robust b
reg  x_00sA303  x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, vce(robust) b
reg  x_00sA303 x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst x_var820 exussr LAm Africa  , robust b





***figures
sum z_PRG z_x_00svar831clog
twoway (scatter z_x_00svar831clog z_PRG ,  msymbol(Oh) mcolor(black) jitter(6)) (lfit z_x_00svar831clog z_PRG )
twoway (scatter z_x_00sA201 z_PRG,  msymbol(T) mlwidth(thin) mlcolor(black) mfcolor(cyan) jitter(6)) (lfit  z_x_00sA201 z_PRG)
twoway (scatter z_x_00sexconst z_PRG,  msymbol(T) mlwidth(thin) mlcolor(black) mfcolor(cyan) jitter(6)) (lfit z_x_00sexconst z_PRG)
twoway (scatter z_x_00sBTI_Q1 z_PRG,  msymbol(T) mlwidth(thin) mlcolor(black) mfcolor(cyan) jitter(6)) (lfit z_x_00sBTI_Q1 z_PRG)
twoway (scatter z_x_00svar831clog z_PRG,  msymbol(T) mlwidth(thin) mlcolor(black) mfcolor(cyan) jitter(6)) (lfit z_x_00svar831clog z_PRG)

twoway (scatter z_x_00sBTI_Q1 z_PRG,  msymbol(T) mlabels(Natabrv) mlwidth(thin) mlcolor(black) mfcolor(cyan) jitter(6)) (lfit z_x_00sBTI_Q1 z_PRG)


 ***clusters
 ***wont always give the same thing
 cluster k z_PRG z_corrup z_property z_x_00sA303 z_x_00svar831clog z_x_00sBTI_Q1 zR_x_00sexconst z_x_00sA201, k(4) keepcenters

 
 cluster k z_PRG z_corrup z_property z_x_00sA303 z_x_00svar831clog z_x_00sBTI_Q1 zR_x_00sexconst z_x_00sA201, k(4) keepcenters

  cluster k z_PRG z_corrup z_property z_x_00sA303 z_x_00svar831clog z_x_00sBTI_Q1 zR_x_00sexconst z_x_00sA201, k(5) keepcenters

 
 ***TABLE 3
reg  x_00sPRGbureaucratic  x_00svar803bLOG  x_00svar831clog x_00sA201 , robust b
reg x_00svar803bLOG x_00sPRGbureaucratic   , robust b
reg x_00svar831clog x_00sPRGbureaucratic , robust b
reg x_00sA201 x_00sPRGbureaucratic, robust b
reg x_00sBTI_Q11 x_00sPRGbureaucratic , robust b
reg  x_00sPRGbureaucratic x_00sexconst ,   robust b
reg  x_00sPRGbureaucratic  x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst, robust b
reg  x_00sPRGbureaucratic  x_00svar803bLOG  x_00svar831clog x_00sA201 x_00sPHYSINT x_00sexconst x_var820 exussr LAm Africa  , robust b

